import {http} from "@/utils/request";
//获取订单列表
export const reqGetOrderList = (info: any) => http({
    url: "/sxg/sxg_order/page",
    data: info,
    method: "GET",
});
//创建订单
export const reqCreateOrder = (info: any) => http({
    url: "/sxg/sxg_order",
    data: info,
    method: "POST",
});
//支付订单
export const reqPayOrder = (info: any) => http({
    url: "/sxg/sxg_order/pay",
    data: info,
    method: "POST",
});
//根据订单id查询详细信息
export const reqGetByOrderIdInfo = (id: any) => http({
    url: "/sxg/sxg_order/" + id,
    method: "GET",
});
//根据订单id收货
export const reqReceiptOfGoods = (info: any) => http({
    url: "/sxg/sxg_order/receiptOfGoods",
    data: info,
    method: "POST",
});
//根据订单id删除订单
export const reqDeleteOrder = (info: any) => http({
    url: "/sxg/sxg_order",
    data: info,
    method: "DELETE",
});